<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="width: 100%">
    <div style="margin: 0 auto;width: 200px">
        <span th:text="${msg}" style="color: red"></span>
        <form th:action="@{/login}" th:type="post">
            用户名：<input type="text" name="username"><br>
            密码：<input type="password" name="password"><br>
            <input type="submit" style="margin-top: 10px" value="提交">
        </form>
    </div>
</body>
</html>